package com.iptv.grape.ui.frgmt.my.impls;

import android.os.Build;

import com.iptv.grape.RunTimeApplication;
import com.iptv.grape.util.ApkUtil;
import com.iptv.grape.util.SystemUtil;

public class SystemDef implements SystemInfo {
    @Override
    public String getAccountInfo() {
        return SystemUtil.getIptvAccount();
    }

    @Override
    public String getMac() {
        String mac=SystemUtil.getMacAddress2().toUpperCase();
        return mac.replaceAll(":","");
//        getMac();
    }

    @Override
    public String getDevelopmentVersion() {
//        return android.os.Build.VERSION.CODENAME;
        return SystemUtil.getVersionName();
    }

    @Override
    public String getModel() {

        return Build.MODEL;
    }


    @Override
    public String getAndroidVersion() {
        return android.os.Build.VERSION.RELEASE;
    }

    @Override
    public String getFirmware() {
        return SystemUtil.getFirmware();
//        return Build.getRadioVersion();
    }

    @Override
    public String getIP() {
        return SystemUtil.getIp();
    }

    @Override
    public String getAppId() {
        return RunTimeApplication.getCurApp().getApplicationInfo().packageName;
    }

    @Override
    public String getDeviceType() {
        return "STB";
    }

    @Override
    public String getManufacturer() {
        return Build.MANUFACTURER;
    }

    @Override
    public String get0perator() {
        return SystemUtil.getOperator();
    }

    @Override
    public String getLicence() {
        return SystemUtil.getLicence();
    }

    @Override
    public String getCdn() {
        return SystemUtil.getCdn();
    }

    @Override
    public String getApkVersion() {
        return SystemUtil.getVersionName();
    }

    @Override
    public String getTokenCode() {
        return "837012161053@HAITV_585FF6273B05";
    }

    @Override
    public String getSiteCode() {
        return "telecomS";
    }

    @Override
    public String getGroupingId() {
        return "ff08869e-f0ce-4364-a739-99fe81297e83";
    }

}

